<template>
  <div class="main">
    <siderBar></siderBar>
    <div class="content-view">
      <keep-alive>
        <router-view></router-view>
      </keep-alive>
    </div>
  </div>
</template>

<script>
import siderBar from '@/components/siderBar'
export default {
  components: {
    siderBar
  }
}
</script>

<style lang="less" scoped>
.main {
  display: flex;
  max-width: 1200px;
  min-width: 800px;
  min-height: 600px;
  width: 100%;
  height: 80%;
  border-radius: 10px;
  transition: all 0.2s linear;
  backface-visibility: hidden;
  overflow: hidden;
  .content-view {
    flex: 1;
    height: 100%;
  }
}

@media (max-height: 800px), (max-width: 1200px) {
  .main {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
}
</style>
